%%
% Copyright (c) 2017 - 2021, Pascal Wagler;
% Copyright (c) 2014 - 2021, John MacFarlane
%
% All rights reserved.
%
% Redistribution and use in source and binary forms, with or without
% modification, are permitted provided that the following conditions
% are met:
%
% - Redistributions of source code must retain the above copyright
% notice, this list of conditions and the following disclaimer.
%
% - Redistributions in binary form must reproduce the above copyright
% notice, this list of conditions and the following disclaimer in the
% documentation and/or other materials provided with the distribution.
%
% - Neither the name of John MacFarlane nor the names of other
% contributors may be used to endorse or promote products derived
% from this software without specific prior written permission.
%
% THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
% "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
% LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
% FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
% COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
% INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
% BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
% LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
% CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
% LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
% ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
% POSSIBILITY OF SUCH DAMAGE.
%%

%%
% This is the Eisvogel pandoc LaTeX template.
%
% For usage information and examples visit the official GitHub page:
% https://github.com/Wandmalfarbe/pandoc-latex-template
%%

% Options for packages loaded elsewhere
\PassOptionsToPackage{unicode}{hyperref}
\PassOptionsToPackage{hyphens}{url}
\PassOptionsToPackage{dvipsnames,svgnames*,x11names*,table}{xcolor}
%
\documentclass[
  paper=a4,
  ,captions=tableheading
]{scrartcl}
\usepackage{amsmath,amssymb}
\usepackage{lmodern}
\usepackage{setspace}
\setstretch{1.2}
\usepackage{ifxetex,ifluatex}
\ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex
  \usepackage[T1]{fontenc}
  \usepackage[utf8]{inputenc}
  \usepackage{textcomp} % provide euro and other symbols
\else % if luatex or xetex
  \usepackage{unicode-math}
  \defaultfontfeatures{Scale=MatchLowercase}
  \defaultfontfeatures[\rmfamily]{Ligatures=TeX,Scale=1}
\fi
% Use upquote if available, for straight quotes in verbatim environments
\IfFileExists{upquote.sty}{\usepackage{upquote}}{}
\IfFileExists{microtype.sty}{% use microtype if available
  \usepackage[]{microtype}
  \UseMicrotypeSet[protrusion]{basicmath} % disable protrusion for tt fonts
}{}
\makeatletter
\@ifundefined{KOMAClassName}{% if non-KOMA class
  \IfFileExists{parskip.sty}{%
    \usepackage{parskip}
  }{% else
    \setlength{\parindent}{0pt}
    \setlength{\parskip}{6pt plus 2pt minus 1pt}}
}{% if KOMA class
  \KOMAoptions{parskip=half}}
\makeatother
\usepackage{xcolor}
\definecolor{default-linkcolor}{HTML}{A50000}
\definecolor{default-filecolor}{HTML}{A50000}
\definecolor{default-citecolor}{HTML}{4077C0}
\definecolor{default-urlcolor}{HTML}{4077C0}
\IfFileExists{xurl.sty}{\usepackage{xurl}}{} % add URL line breaks if available
\IfFileExists{bookmark.sty}{\usepackage{bookmark}}{\usepackage{hyperref}}
\hypersetup{
  hidelinks,
  breaklinks=true,
  pdfcreator={LaTeX via pandoc with the Eisvogel template}}
\urlstyle{same} % disable monospaced font for URLs
\usepackage[margin=2.5cm,includehead=true,includefoot=true,centering,]{geometry}
\usepackage{color}
\usepackage{fancyvrb}
\newcommand{\VerbBar}{|}
\newcommand{\VERB}{\Verb[commandchars=\\\{\}]}
\DefineVerbatimEnvironment{Highlighting}{Verbatim}{commandchars=\\\{\}}
% Add ',fontsize=\small' for more characters per line
\newenvironment{Shaded}{}{}
\newcommand{\AlertTok}[1]{\textcolor[rgb]{1.00,0.00,0.00}{\textbf{#1}}}
\newcommand{\AnnotationTok}[1]{\textcolor[rgb]{0.38,0.63,0.69}{\textbf{\textit{#1}}}}
\newcommand{\AttributeTok}[1]{\textcolor[rgb]{0.49,0.56,0.16}{#1}}
\newcommand{\BaseNTok}[1]{\textcolor[rgb]{0.25,0.63,0.44}{#1}}
\newcommand{\BuiltInTok}[1]{#1}
\newcommand{\CharTok}[1]{\textcolor[rgb]{0.25,0.44,0.63}{#1}}
\newcommand{\CommentTok}[1]{\textcolor[rgb]{0.38,0.63,0.69}{\textit{#1}}}
\newcommand{\CommentVarTok}[1]{\textcolor[rgb]{0.38,0.63,0.69}{\textbf{\textit{#1}}}}
\newcommand{\ConstantTok}[1]{\textcolor[rgb]{0.53,0.00,0.00}{#1}}
\newcommand{\ControlFlowTok}[1]{\textcolor[rgb]{0.00,0.44,0.13}{\textbf{#1}}}
\newcommand{\DataTypeTok}[1]{\textcolor[rgb]{0.56,0.13,0.00}{#1}}
\newcommand{\DecValTok}[1]{\textcolor[rgb]{0.25,0.63,0.44}{#1}}
\newcommand{\DocumentationTok}[1]{\textcolor[rgb]{0.73,0.13,0.13}{\textit{#1}}}
\newcommand{\ErrorTok}[1]{\textcolor[rgb]{1.00,0.00,0.00}{\textbf{#1}}}
\newcommand{\ExtensionTok}[1]{#1}
\newcommand{\FloatTok}[1]{\textcolor[rgb]{0.25,0.63,0.44}{#1}}
\newcommand{\FunctionTok}[1]{\textcolor[rgb]{0.02,0.16,0.49}{#1}}
\newcommand{\ImportTok}[1]{#1}
\newcommand{\InformationTok}[1]{\textcolor[rgb]{0.38,0.63,0.69}{\textbf{\textit{#1}}}}
\newcommand{\KeywordTok}[1]{\textcolor[rgb]{0.00,0.44,0.13}{\textbf{#1}}}
\newcommand{\NormalTok}[1]{#1}
\newcommand{\OperatorTok}[1]{\textcolor[rgb]{0.40,0.40,0.40}{#1}}
\newcommand{\OtherTok}[1]{\textcolor[rgb]{0.00,0.44,0.13}{#1}}
\newcommand{\PreprocessorTok}[1]{\textcolor[rgb]{0.74,0.48,0.00}{#1}}
\newcommand{\RegionMarkerTok}[1]{#1}
\newcommand{\SpecialCharTok}[1]{\textcolor[rgb]{0.25,0.44,0.63}{#1}}
\newcommand{\SpecialStringTok}[1]{\textcolor[rgb]{0.73,0.40,0.53}{#1}}
\newcommand{\StringTok}[1]{\textcolor[rgb]{0.25,0.44,0.63}{#1}}
\newcommand{\VariableTok}[1]{\textcolor[rgb]{0.10,0.09,0.49}{#1}}
\newcommand{\VerbatimStringTok}[1]{\textcolor[rgb]{0.25,0.44,0.63}{#1}}
\newcommand{\WarningTok}[1]{\textcolor[rgb]{0.38,0.63,0.69}{\textbf{\textit{#1}}}}

% Workaround/bugfix from jannick0.
% See https://github.com/jgm/pandoc/issues/4302#issuecomment-360669013)
% or https://github.com/Wandmalfarbe/pandoc-latex-template/issues/2
%
% Redefine the verbatim environment 'Highlighting' to break long lines (with
% the help of fvextra). Redefinition is necessary because it is unlikely that
% pandoc includes fvextra in the default template.
\usepackage{fvextra}
\DefineVerbatimEnvironment{Highlighting}{Verbatim}{breaklines,fontsize=\small,commandchars=\\\{\}}

% add backlinks to footnote references, cf. https://tex.stackexchange.com/questions/302266/make-footnote-clickable-both-ways
\usepackage{footnotebackref}
\usepackage{graphicx}
\makeatletter
\def\maxwidth{\ifdim\Gin@nat@width>\linewidth\linewidth\else\Gin@nat@width\fi}
\def\maxheight{\ifdim\Gin@nat@height>\textheight\textheight\else\Gin@nat@height\fi}
\makeatother
% Scale images if necessary, so that they will not overflow the page
% margins by default, and it is still possible to overwrite the defaults
% using explicit options in \includegraphics[width, height, ...]{}
\setkeys{Gin}{width=\maxwidth,height=\maxheight,keepaspectratio}
% Set default figure placement to htbp
\makeatletter
\def\fps@figure{htbp}
\makeatother
\setlength{\emergencystretch}{3em} % prevent overfull lines
\providecommand{\tightlist}{%
  \setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}
\setcounter{secnumdepth}{-\maxdimen} % remove section numbering

% Make use of float-package and set default placement for figures to H.
% The option H means 'PUT IT HERE' (as  opposed to the standard h option which means 'You may put it here if you like').
\usepackage{float}
\floatplacement{figure}{H}

\ifluatex
  \usepackage{selnolig}  % disable illegal ligatures
\fi

\author{}
\date{}



%%
%% added
%%

%
% language specification
%
% If no language is specified, use English as the default main document language.
%

\ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex
  \usepackage[shorthands=off,main=english]{babel}
\else
    % Workaround for bug in Polyglossia that breaks `\familydefault` when `\setmainlanguage` is used.
  % See https://github.com/Wandmalfarbe/pandoc-latex-template/issues/8
  % See https://github.com/reutenauer/polyglossia/issues/186
  % See https://github.com/reutenauer/polyglossia/issues/127
  \renewcommand*\familydefault{\sfdefault}
    % load polyglossia as late as possible as it *could* call bidi if RTL lang (e.g. Hebrew or Arabic)
  \usepackage{polyglossia}
  \setmainlanguage[]{english}
\fi



%
% for the background color of the title page
%

%
% break urls
%
\PassOptionsToPackage{hyphens}{url}

%
% When using babel or polyglossia with biblatex, loading csquotes is recommended
% to ensure that quoted texts are typeset according to the rules of your main language.
%
\usepackage{csquotes}

%
% captions
%
\definecolor{caption-color}{HTML}{777777}
\usepackage[font={stretch=1.2}, textfont={color=caption-color}, position=top, skip=4mm, labelfont=bf, singlelinecheck=false, justification=raggedright]{caption}
\setcapindent{0em}

%
% blockquote
%
\definecolor{blockquote-border}{RGB}{221,221,221}
\definecolor{blockquote-text}{RGB}{119,119,119}
\usepackage{mdframed}
\newmdenv[rightline=false,bottomline=false,topline=false,linewidth=3pt,linecolor=blockquote-border,skipabove=\parskip]{customblockquote}
\renewenvironment{quote}{\begin{customblockquote}\list{}{\rightmargin=0em\leftmargin=0em}%
\item\relax\color{blockquote-text}\ignorespaces}{\unskip\unskip\endlist\end{customblockquote}}

%
% Source Sans Pro as the de­fault font fam­ily
% Source Code Pro for monospace text
%
% 'default' option sets the default
% font family to Source Sans Pro, not \sfdefault.
%
\ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex
    \usepackage[default]{sourcesanspro}
  \usepackage{sourcecodepro}
  \else % if not pdftex
    \usepackage[default]{sourcesanspro}
  \usepackage{sourcecodepro}

  % XeLaTeX specific adjustments for straight quotes: https://tex.stackexchange.com/a/354887
  % This issue is already fixed (see https://github.com/silkeh/latex-sourcecodepro/pull/5) but the
  % fix is still unreleased.
  % TODO: Remove this workaround when the new version of sourcecodepro is released on CTAN.
  \ifxetex
    \makeatletter
    \defaultfontfeatures[\ttfamily]
      { Numbers   = \sourcecodepro@figurestyle,
        Scale     = \SourceCodePro@scale,
        Extension = .otf }
    \setmonofont
      [ UprightFont    = *-\sourcecodepro@regstyle,
        ItalicFont     = *-\sourcecodepro@regstyle It,
        BoldFont       = *-\sourcecodepro@boldstyle,
        BoldItalicFont = *-\sourcecodepro@boldstyle It ]
      {SourceCodePro}
    \makeatother
  \fi
  \fi

%
% heading color
%
\definecolor{heading-color}{RGB}{40,40,40}
\addtokomafont{section}{\color{heading-color}}
% When using the classes report, scrreprt, book,
% scrbook or memoir, uncomment the following line.
%\addtokomafont{chapter}{\color{heading-color}}

%
% variables for title, author and date
%
\usepackage{titling}
\title{}
\author{}
\date{}

%
% tables
%

%
% remove paragraph indention
%
\setlength{\parindent}{0pt}
\setlength{\parskip}{6pt plus 2pt minus 1pt}
\setlength{\emergencystretch}{3em}  % prevent overfull lines

%
%
% Listings
%
%


%
% header and footer
%
\usepackage[headsepline,footsepline]{scrlayer-scrpage}

\newpairofpagestyles{eisvogel-header-footer}{
  \clearpairofpagestyles
  \ihead[]{}
  \chead[]{}
  \ohead[]{}
  \ifoot[\thepage]{}
  \cfoot[]{}
  \ofoot[]{\thepage}
  \addtokomafont{pageheadfoot}{\upshape}
}
\pagestyle{eisvogel-header-footer}

%%
%% end added
%%

\begin{document}

%%
%% begin titlepage
%%

%%
%% end titlepage
%%



\hypertarget{ux51c6ux5907}{%
\section{准备}\label{ux51c6ux5907}}

\hypertarget{ux4e0bux8f7dux955cux50cf}{%
\subsection{下载镜像}\label{ux4e0bux8f7dux955cux50cf}}

\href{https://archlinux.org/download/}{download}

可直接选择\texttt{http://mirrors.163.com/archlinux/iso/2021.03.01/}中下载\texttt{http://mirrors.163.com/archlinux/iso/2021.03.01/archlinux-2021.03.01-x86\_64.iso}

\hypertarget{ux5199ux5165uux76d8}{%
\subsection{写入U盘}\label{ux5199ux5165uux76d8}}

U盘使用\href{https://rufus.ie/downloads/}{rufus}

可使用便携版，后缀带\texttt{p}

\texttt{uefi}安装方式，此处的分区类型应选择\texttt{GPT}。

\begin{figure}
\centering
\includegraphics{arch安装教程/1615627360216.png}
\caption{1615627360216}
\end{figure}

\hypertarget{ux5f15ux5bfc}{%
\subsection{引导}\label{ux5f15ux5bfc}}

设置bios选择U盘启动

\hypertarget{ux5b89ux88c5}{%
\section{安装}\label{ux5b89ux88c5}}

\hypertarget{ux51c6ux5907-1}{%
\subsection{准备}\label{ux51c6ux5907-1}}

选择默认，进入安装模式

\begin{figure}
\centering
\includegraphics{arch安装教程/1615627465656.png}
\caption{1615627465656}
\end{figure}

\begin{figure}
\centering
\includegraphics{arch安装教程/1615627516331.png}
\caption{1615627516331}
\end{figure}

\hypertarget{ux68c0ux67e5ux5f15ux5bfc}{%
\subsection{检查引导}\label{ux68c0ux67e5ux5f15ux5bfc}}

\begin{Shaded}
\begin{Highlighting}[]
\FunctionTok{ls}\NormalTok{ /sys/firmware/efi/efivars}
\ExtensionTok{ls:}\NormalTok{ cannot access }\StringTok{\textquotesingle{}/sys/firmware/efi/efivars\textquotesingle{}}\NormalTok{: No such file or directory}
\CommentTok{\#表明你是以BIOS方式引导，否则为以EFI方式引导。}
\end{Highlighting}
\end{Shaded}

\hypertarget{ux4e34ux65f6ux8fdeux7f51}{%
\subsection{临时连网}\label{ux4e34ux65f6ux8fdeux7f51}}

\begin{quote}
暂时使用手机网络进行联网
\end{quote}

\begin{enumerate}
\def\labelenumi{\arabic{enumi}.}
\tightlist
\item
  手机连接usb，开启usb共享网络
\item
  \texttt{sudo\ ip\ link} 展示所有网卡
\item
  \texttt{sudo\ ip\ link\ set\ enp0s***\ up} 打开对应的网卡
\item
  \texttt{sudo\ dhcpcd\ enp0s***} 给对应的网卡分配网络
\end{enumerate}

\hypertarget{ux5206ux533a}{%
\subsection{分区}\label{ux5206ux533a}}

\begin{enumerate}
\def\labelenumi{\arabic{enumi}.}
\item
  检查分区

\begin{Shaded}
\begin{Highlighting}[]
\ExtensionTok{fdisk} \AttributeTok{{-}l}
\end{Highlighting}
\end{Shaded}

  \begin{figure}
  \centering
  \includegraphics{arch安装教程/1615627909923.png}
  \caption{1615627909923}
  \end{figure}

  \begin{figure}
  \centering
  \includegraphics{arch安装教程/1615627987945.png}
  \caption{1615627987945}
  \end{figure}
\item
  格式化

\begin{Shaded}
\begin{Highlighting}[]
\ExtensionTok{mkfs.ext4}\NormalTok{ /dev/sdxY （请将的sdxY替换为刚创建的分区）}
\ExtensionTok{mkfs.vfat}\NormalTok{ /dev/sdxZ }\CommentTok{\# 此分区为boot引导分区，需要单独分盘。500M即可}
\end{Highlighting}
\end{Shaded}

  \begin{figure}
  \centering
  \includegraphics{arch安装教程/1615628081423.png}
  \caption{1615628081423}
  \end{figure}
\item
  挂载分区

\begin{Shaded}
\begin{Highlighting}[]
\FunctionTok{mount}\NormalTok{ /dev/sdxY /mnt （请将sdxY替换为之前创建的根分区）}
\end{Highlighting}
\end{Shaded}
\item
  \textbf{如果你是EFI/GPT引导方式}，执行以下命令创建/boot文件夹并将引导分区挂载到上面。\textbf{BIOS/MBR引导方式无需进行这步。}

\begin{verbatim}
mkdir /mnt/boot
mount /dev/sdxZ /mnt/boot （请将sdxY替换为之前创建或是已经存在的引导分区）
\end{verbatim}
\item
  选择镜像源

\begin{Shaded}
\begin{Highlighting}[]
\ExtensionTok{vim}\NormalTok{ /etc/pacman.d/mirrorlist}
\ExtensionTok{Server}\NormalTok{ = http://mirrors.tuna.tsinghua.edu.cn/archlinux/}\VariableTok{$repo}\NormalTok{/os/}\VariableTok{$arch}
\ExtensionTok{Server}\NormalTok{ = http://mirrors.zju.edu.cn/archlinux/}\VariableTok{$repo}\NormalTok{/os/}\VariableTok{$arch}
\end{Highlighting}
\end{Shaded}
\item
  安装基本包

\begin{Shaded}
\begin{Highlighting}[]
\ExtensionTok{pacstrap}\NormalTok{ /mnt base base{-}devel linux linux{-}firmware dhcpcd}
\end{Highlighting}
\end{Shaded}
\item
  配置Fstab

\begin{Shaded}
\begin{Highlighting}[]
\ExtensionTok{genfstab} \AttributeTok{{-}L}\NormalTok{ /mnt }\OperatorTok{\textgreater{}\textgreater{}}\NormalTok{ /mnt/etc/fstab}
\FunctionTok{cat}\NormalTok{ /mnt/etc/fstab}
\end{Highlighting}
\end{Shaded}
\item
  切换到arch

\begin{Shaded}
\begin{Highlighting}[]
\ExtensionTok{arch{-}chroot}\NormalTok{ /mnt}
\end{Highlighting}
\end{Shaded}
\end{enumerate}

\hypertarget{ux5b89ux88c5ux9a71ux52a8}{%
\subsection{安装驱动}\label{ux5b89ux88c5ux9a71ux52a8}}

\hypertarget{ux58f0ux5361ux9a71ux52a8}{%
\subsubsection{声卡驱动}\label{ux58f0ux5361ux9a71ux52a8}}

\begin{Shaded}
\begin{Highlighting}[]
\FunctionTok{sudo}\NormalTok{ pacman }\AttributeTok{{-}S}\NormalTok{ alsa{-}utils pulseaudio{-}alsa}
\end{Highlighting}
\end{Shaded}

\hypertarget{ux89e6ux6478ux677fux9a71ux52a8}{%
\subsubsection{触摸板驱动}\label{ux89e6ux6478ux677fux9a71ux52a8}}

\begin{Shaded}
\begin{Highlighting}[]
\FunctionTok{sudo}\NormalTok{ pacman }\AttributeTok{{-}S}\NormalTok{ xf86{-}input{-}libinput}
\CommentTok{\# 输出系统中的设备}
\ExtensionTok{libinput}\NormalTok{ list{-}devices}
\CommentTok{\# 查看设备并确定其名称和编号}
\ExtensionTok{xinput}\NormalTok{ list}
\CommentTok{\# 自定义配置}
\ExtensionTok{vim}\NormalTok{ /etc/X11/xorg.conf.d/30{-}touchpad.conf}
\end{Highlighting}
\end{Shaded}

\hypertarget{ux5b89ux88c5ux663eux5361ux9a71ux52a8}{%
\subsubsection{安装显卡驱动}\label{ux5b89ux88c5ux663eux5361ux9a71ux52a8}}

\begin{Shaded}
\begin{Highlighting}[]
\ExtensionTok{lspci} \AttributeTok{{-}v} \KeywordTok{|} \FunctionTok{grep} \AttributeTok{{-}A1} \AttributeTok{{-}e}\NormalTok{ VGA }\AttributeTok{{-}e}\NormalTok{ 3D}
\CommentTok{\# 或}
\ExtensionTok{lspci} \KeywordTok{|} \FunctionTok{grep}\NormalTok{ VGA}
\end{Highlighting}
\end{Shaded}

\begin{figure}
\centering
\includegraphics{wsl打造arch开发环境/arch21.png}
\caption{img}
\end{figure}

\begin{Shaded}
\begin{Highlighting}[]
\FunctionTok{sudo}\NormalTok{ pacman }\AttributeTok{{-}S}\NormalTok{ xf86{-}video}
\end{Highlighting}
\end{Shaded}

\hypertarget{ux5f15ux5bfc-1}{%
\subsection{引导}\label{ux5f15ux5bfc-1}}

\begin{enumerate}
\def\labelenumi{\arabic{enumi}.}
\item
  设置时区

\begin{Shaded}
\begin{Highlighting}[]
\FunctionTok{ln} \AttributeTok{{-}sf}\NormalTok{ /usr/share/zoneinfo/Asia/Shanghai /etc/localtime}
\ExtensionTok{hwclock} \AttributeTok{{-}{-}systohc}
\end{Highlighting}
\end{Shaded}
\item
  提前安装必须软件包

\begin{Shaded}
\begin{Highlighting}[]
\ExtensionTok{pacman} \AttributeTok{{-}S}\NormalTok{ vim dialog wpa\_supplicant ntfs{-}3g networkmanager}
\end{Highlighting}
\end{Shaded}
\item
  设置Locale

\begin{Shaded}
\begin{Highlighting}[]
\ExtensionTok{vim}\NormalTok{ /etc/locale.gen}
\CommentTok{\#在文件中找到zh\_CN.UTF{-}8 UTF{-}8 zh\_HK.UTF{-}8 UTF{-}8 zh\_TW.UTF{-}8 UTF{-}8 en\_US.UTF{-}8 UTF{-}8这四行，去掉行首的\#号，保存并退出}
\ExtensionTok{locale{-}gen}
\ExtensionTok{vim}\NormalTok{ /etc/locale.conf}
\VariableTok{LANG}\OperatorTok{=}\NormalTok{en\_US.UTF{-}8}
\CommentTok{\# end}
\end{Highlighting}
\end{Shaded}
\item
  设置主机名

\begin{Shaded}
\begin{Highlighting}[]
\ExtensionTok{vim}\NormalTok{ /etc/hostname}
  \CommentTok{\# start}
\ExtensionTok{nickerg}
  \CommentTok{\# end}
\ExtensionTok{vim}\NormalTok{ /etc/hosts}
  \CommentTok{\# start}
\ExtensionTok{127.0.0.1}\NormalTok{    localhost}
\ExtensionTok{::1}\NormalTok{      localhost}
\ExtensionTok{127.0.1.1}\NormalTok{    nickerg.localdomain nickerg}
  \CommentTok{\# end}
\end{Highlighting}
\end{Shaded}
\item
  设置Root密码

\begin{Shaded}
\begin{Highlighting}[]
\FunctionTok{passwd}
\end{Highlighting}
\end{Shaded}
\item
  安装Bootloader

  \begin{enumerate}
  \def\labelenumii{\arabic{enumii}.}
  \item
    bios引导(未测试)

\begin{Shaded}
\begin{Highlighting}[]
 \ExtensionTok{pacman} \AttributeTok{{-}S}\NormalTok{ os{-}prober ntfs{-}3g}
 \ExtensionTok{pacman} \AttributeTok{{-}S}\NormalTok{ grub}
 \CommentTok{\# 此不可用}
 \ExtensionTok{grub{-}install} \AttributeTok{{-}{-}target}\OperatorTok{=}\NormalTok{i386{-}pc /dev/sdx （将sdx换成你安装的硬盘）}
 \CommentTok{\# 使用此}
 \ExtensionTok{grub{-}install} \AttributeTok{{-}{-}recheck}\NormalTok{ /dev/sda}
 \ExtensionTok{grub{-}mkconfig} \AttributeTok{{-}o}\NormalTok{ /boot/grub/grub.cfg}
\end{Highlighting}
\end{Shaded}
  \item
    如果为EFI/GPT引导方式：

    \begin{itemize}
    \item
      安装\texttt{grub}与\texttt{efibootmgr}两个包：

\begin{verbatim}
pacman -S grub efibootmgr
\end{verbatim}
    \item
      部署\texttt{grub}：

\begin{verbatim}
grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=grub
\end{verbatim}
    \item
      生成配置文件：

\begin{verbatim}
grub-mkconfig -o /boot/grub/grub.cfg
\end{verbatim}
    \end{itemize}
  \end{enumerate}
\item
  安装后检查

\begin{Shaded}
\begin{Highlighting}[]
\ExtensionTok{vim}\NormalTok{ /boot/grub/grub.cfg}
\end{Highlighting}
\end{Shaded}

  检查接近末尾的\texttt{menuentry}部分是否有\texttt{windows}或其他系统名入口。
\item
  重启

\begin{Shaded}
\begin{Highlighting}[]
\BuiltInTok{exit}
\CommentTok{\# umount /mnt/boot}
\FunctionTok{umount}\NormalTok{ /mnt}
\ExtensionTok{reboot}
\end{Highlighting}
\end{Shaded}
\end{enumerate}

\hypertarget{ux914dux7f6e}{%
\section{配置}\label{ux914dux7f6e}}

\hypertarget{ux8054ux7f51}{%
\subsection{联网}\label{ux8054ux7f51}}

\begin{Shaded}
\begin{Highlighting}[]
\ExtensionTok{pacman} \AttributeTok{{-}S}\NormalTok{ networkmanager}
\ExtensionTok{ip}\NormalTok{ link set enp0s3 up}
\ExtensionTok{dhcpcd}\NormalTok{ enp0s3}
\end{Highlighting}
\end{Shaded}

\hypertarget{ux8fdeux63a5ux65e0ux7ebf}{%
\subsubsection{连接无线}\label{ux8fdeux63a5ux65e0ux7ebf}}

\hypertarget{ux5b89ux88c5nmcli}{%
\paragraph{安装nmcli}\label{ux5b89ux88c5nmcli}}

\begin{Shaded}
\begin{Highlighting}[]
\FunctionTok{sudo}\NormalTok{ pacman }\AttributeTok{{-}S}\NormalTok{ networkmanager}
\FunctionTok{sudo}\NormalTok{ systemctl enable NetworkManager.service}
\FunctionTok{sudo}\NormalTok{ systemctl start NetworkManager.service}
\end{Highlighting}
\end{Shaded}

\hypertarget{ux4f7fux7528nmcli}{%
\paragraph{使用nmcli}\label{ux4f7fux7528nmcli}}

\begin{Shaded}
\begin{Highlighting}[]
\ExtensionTok{ip}\NormalTok{ addr set wlan0 up}
\end{Highlighting}
\end{Shaded}

List nearby Wi-Fi networks:

\begin{verbatim}
$ nmcli device wifi list
\end{verbatim}

Connect to a Wi-Fi network:

\begin{verbatim}
$ nmcli device wifi connect SSID_or_BSSID password "password"
\end{verbatim}

Get a list of connections with their names, UUIDs, types and backing
devices:

\begin{verbatim}
$ nmcli connection show
\end{verbatim}

Activate a connection (i.e.~connect to a network with an existing
profile):

\begin{verbatim}
$ nmcli connection up name_or_uuid
\end{verbatim}

Delete a connection:

\begin{verbatim}
$ nmcli connection delete name_or_uuid
\end{verbatim}

See a list of network devices and their state:

\begin{verbatim}
$ nmcli device
\end{verbatim}

Turn off Wi-Fi:

\begin{verbatim}
$ nmcli radio wifi off
\end{verbatim}

\hypertarget{ux8bbeux7f6eux9759ux6001ip}{%
\subsubsection{设置静态ip}\label{ux8bbeux7f6eux9759ux6001ip}}

\begin{Shaded}
\begin{Highlighting}[]
\ExtensionTok{nmcli}\NormalTok{ connection show}
\ExtensionTok{NAME}\NormalTok{                UUID                                  TYPE      DEVICE}
\ExtensionTok{FAST\_BAB8}\NormalTok{           77f677e0{-}50e5{-}40f7{-}8cee{-}3d26ffa19eda  wifi      wlp4s0}
\ExtensionTok{br{-}51b4ca580679}\NormalTok{     3e3ff898{-}0b66{-}448c{-}80ec{-}00c99b017ba6  bridge    br{-}51b4ca580679}
\ExtensionTok{br{-}c607db215989}\NormalTok{     12c40db2{-}ce1a{-}46aa{-}b3a9{-}48517e701558  bridge    br{-}c607db215989}
\ExtensionTok{docker0}\NormalTok{             607b8b85{-}6dcf{-}45c2{-}ab3e{-}2c645295dd01  bridge    docker0}
\ExtensionTok{Wired}\NormalTok{ connection 1  6d4ee391{-}901f{-}35c6{-}bea8{-}c825d027820d  ethernet  }\AttributeTok{{-}{-}}

\ExtensionTok{nmcli}\NormalTok{ c mod FAST\_BAB8 ipv4.address 192.168.0.109/24 ipv4.gateway 192.168.0.1 ipv4.dns 192.168.0.1 ipv4.method manual}
\ExtensionTok{ifconfig}
\ExtensionTok{nmcli}\NormalTok{ c down FAST\_BAB8}
\ExtensionTok{Connection} \StringTok{\textquotesingle{}FAST\_BAB8\textquotesingle{}}\NormalTok{ successfully deactivated }\ErrorTok{(}\ExtensionTok{D{-}Bus}\NormalTok{ active path: /org/freedesktop/NetworkManager/ActiveConnection/8}\KeywordTok{)}
\ExtensionTok{nmcli}\NormalTok{ c up FAST\_BAB8}
\ExtensionTok{Connection}\NormalTok{ successfully activated }\ErrorTok{(}\ExtensionTok{D{-}Bus}\NormalTok{ active path: /org/freedesktop/NetworkManager/ActiveConnection/9}\KeywordTok{)}
\end{Highlighting}
\end{Shaded}

\hypertarget{ux6dfbux52a0archlinuxcnux6e90}{%
\subsection{\texorpdfstring{添加\texttt{archlinuxcn}源}{添加archlinuxcn源}}\label{ux6dfbux52a0archlinuxcnux6e90}}

在 \texttt{/etc/pacman.conf} 文件末尾添加以下两行：

\begin{verbatim}
[archlinuxcn]
Server = https://mirrors.tuna.tsinghua.edu.cn/archlinuxcn/$arch
\end{verbatim}

然后安装 GPG key

\begin{verbatim}
sudo pacman -Syu
sudo pacman -S archlinuxcn-keyring
\end{verbatim}

\hypertarget{ux6dfbux52a0ux7528ux6237}{%
\subsection{添加用户}\label{ux6dfbux52a0ux7528ux6237}}

\begin{Shaded}
\begin{Highlighting}[]
\ExtensionTok{useradd} \AttributeTok{{-}m} \AttributeTok{{-}G}\NormalTok{ wheel }\AttributeTok{{-}s}\NormalTok{ /bin/bash nickerg}
\FunctionTok{passwd}\NormalTok{ nickerg}
\FunctionTok{ln} \AttributeTok{{-}s}\NormalTok{ /usr/bin/vim /usr/bin/vi}
\ExtensionTok{visudo}
\CommentTok{\# 取消注释}
\ExtensionTok{wheel}\NormalTok{ ALL=}\ErrorTok{(}\ExtensionTok{ALL}\KeywordTok{)} \ExtensionTok{ALL}
\CommentTok{\#end}

\FunctionTok{su}\NormalTok{ nickerg}
\end{Highlighting}
\end{Shaded}

\hypertarget{ux914dux7f6eaur}{%
\subsection{配置aur}\label{ux914dux7f6eaur}}

安装yay

\begin{verbatim}
sudo pacman -S yay
\end{verbatim}

修改\texttt{aururl}

\begin{verbatim}
yay --aururl "https://aur.tuna.tsinghua.edu.cn" --save
\end{verbatim}

\hypertarget{zsh}{%
\subsection{zsh}\label{zsh}}

\begin{Shaded}
\begin{Highlighting}[]
\ExtensionTok{yay} \AttributeTok{{-}S}\NormalTok{ zsh}
\FunctionTok{chsh} \AttributeTok{{-}s}\NormalTok{ /bin/zsh}
\ExtensionTok{yay} \AttributeTok{{-}S}\NormalTok{ oh{-}my{-}zsh{-}git}
\ExtensionTok{yay} \AttributeTok{{-}S}\NormalTok{ zsh{-}syntax{-}highlighting zsh{-}autosuggestions autojump}
\FunctionTok{sudo}\NormalTok{ ln }\AttributeTok{{-}s}\NormalTok{ /usr/share/zsh/plugins/zsh{-}syntax{-}highlighting /usr/share/oh{-}my{-}zsh/custom/plugins/}
\FunctionTok{sudo}\NormalTok{ ln }\AttributeTok{{-}s}\NormalTok{ /usr/share/zsh/plugins/zsh{-}autosuggestions /usr/share/oh{-}my{-}zsh/custom/plugins/}
\FunctionTok{chsh} \AttributeTok{{-}s}\NormalTok{ /bin/zsh}
\CommentTok{\# 重启即可生效}
\end{Highlighting}
\end{Shaded}

\hypertarget{openssh}{%
\subsection{openssh}\label{openssh}}

\begin{Shaded}
\begin{Highlighting}[]
\ExtensionTok{yay} \AttributeTok{{-}S}\NormalTok{ openssh}
\FunctionTok{sudo}\NormalTok{ vim /etc/ssh/sshd\_config}
\ExtensionTok{PermitRootLogin}\NormalTok{ yes}
\ExtensionTok{Port}\NormalTok{ 6000}
\ExtensionTok{ListenAddress}\NormalTok{ 0.0.0.0}
\CommentTok{\# end}
\FunctionTok{sudo}\NormalTok{ systemctl enable sshd.service}
\FunctionTok{sudo}\NormalTok{ systemctl start sshd.service}
\end{Highlighting}
\end{Shaded}

\hypertarget{ux914dux7f6essh}{%
\subsubsection{配置ssh}\label{ux914dux7f6essh}}

\begin{Shaded}
\begin{Highlighting}[]
\FunctionTok{chmod}\NormalTok{ 600 }\PreprocessorTok{*}
\FunctionTok{chmod}\NormalTok{ 644 }\PreprocessorTok{*}\NormalTok{.pub}
\FunctionTok{chmod}\NormalTok{ 644 config}

\ExtensionTok{vim}\NormalTok{ \textasciitilde{}/.ssh/config}
\CommentTok{\# start}
\ExtensionTok{Host}\NormalTok{ walk143}
  \ExtensionTok{User}\NormalTok{ walk143}
  \ExtensionTok{HostName}\NormalTok{  github.com}
  \ExtensionTok{PreferredAuthentications}\NormalTok{ publickey}
  \ExtensionTok{IdentityFile}\NormalTok{ D:}\DataTypeTok{\textbackslash{}S}\NormalTok{ofts}\DataTypeTok{\textbackslash{}P}\NormalTok{ortableGit}\DataTypeTok{\textbackslash{}.}\NormalTok{ssh}\DataTypeTok{\textbackslash{}s}\NormalTok{loera\_qq\_rsa}
\ExtensionTok{Host}\NormalTok{ nickerg}
  \ExtensionTok{User}\NormalTok{ nickerg}
  \ExtensionTok{HostName}\NormalTok{  github.com}
  \ExtensionTok{PreferredAuthentications}\NormalTok{ publickey}
  \ExtensionTok{IdentityFile}\NormalTok{ D:}\DataTypeTok{\textbackslash{}S}\NormalTok{ofts}\DataTypeTok{\textbackslash{}P}\NormalTok{ortableGit}\DataTypeTok{\textbackslash{}.}\NormalTok{ssh}\DataTypeTok{\textbackslash{}n}\NormalTok{ickerg\_inspur\_rsa}
\ExtensionTok{Host}\NormalTok{ gitee.com }\CommentTok{\#git@gitee.com:sloera/sloera.git中的gitee.com}
  \ExtensionTok{User}\NormalTok{ sloera}
  \ExtensionTok{HostName}\NormalTok{  gitee.com}
  \ExtensionTok{PreferredAuthentications}\NormalTok{ publickey}
\ExtensionTok{IdentityFile}\NormalTok{ D:}\DataTypeTok{\textbackslash{}S}\NormalTok{ofts}\DataTypeTok{\textbackslash{}P}\NormalTok{ortableGit}\DataTypeTok{\textbackslash{}.}\NormalTok{ssh}\DataTypeTok{\textbackslash{}g}\NormalTok{itee\_163\_rsa}
\ExtensionTok{Host}\NormalTok{ git.inspur.com}
  \ExtensionTok{HostName}\NormalTok{  git.inspur.com}
  \ExtensionTok{PreferredAuthentications}\NormalTok{ publickey}
  \ExtensionTok{IdentityFile}\NormalTok{ D:}\DataTypeTok{\textbackslash{}S}\NormalTok{ofts}\DataTypeTok{\textbackslash{}P}\NormalTok{ortableGit}\DataTypeTok{\textbackslash{}.}\NormalTok{ssh}\DataTypeTok{\textbackslash{}s}\NormalTok{loeraN\_gitlab}
\ExtensionTok{Host}\NormalTok{ walk }\CommentTok{\#git@gitee.com:sloera/sloera.git中的gitee.com}
  \ExtensionTok{User}\NormalTok{ sloera}
  \ExtensionTok{HostName}\NormalTok{  gitee.com}
  \ExtensionTok{PreferredAuthentications}\NormalTok{ publickey}
\ExtensionTok{IdentityFile}\NormalTok{ D:}\DataTypeTok{\textbackslash{}S}\NormalTok{ofts}\DataTypeTok{\textbackslash{}P}\NormalTok{ortableGit}\DataTypeTok{\textbackslash{}.}\NormalTok{ssh}\DataTypeTok{\textbackslash{}g}\NormalTok{itee\_qq\_rsa}

\ExtensionTok{Host}\NormalTok{ 192.168.0.108}
  \ExtensionTok{HostName}\NormalTok{ 192.168.0.108}
  \ExtensionTok{User}\NormalTok{ root}
\CommentTok{\# end}
\end{Highlighting}
\end{Shaded}

vim替换

\begin{Shaded}
\begin{Highlighting}[]
\ExtensionTok{:\%s/D\textbackslash{}:\textbackslash{}\textbackslash{}Softs\textbackslash{}\textbackslash{}PortableGit\textbackslash{}\textbackslash{}.ssh\textbackslash{}\textbackslash{}/\textbackslash{}/home\textbackslash{}/sloera\textbackslash{}/\textbackslash{}.ssh\textbackslash{}//g}
\end{Highlighting}
\end{Shaded}

\begin{quote}
注意：\texttt{\textbackslash{}}不需要转义，\texttt{/},\texttt{.}需要转义
\end{quote}

\hypertarget{ux521dux59cbux5316ux4ed3ux5e93}{%
\subsubsection{初始化仓库}\label{ux521dux59cbux5316ux4ed3ux5e93}}

\begin{Shaded}
\begin{Highlighting}[]
\ExtensionTok{[nickerg@\textasciitilde{}]$}\NormalTok{ git init}
\ExtensionTok{[nickerg@\textasciitilde{}]$}\NormalTok{ git remote add origin git@gitee.com:sloera/arch{-}i3.git}
\ExtensionTok{[nickerg@\textasciitilde{}]$}\NormalTok{ rm }\AttributeTok{{-}rf}\NormalTok{ .bash\_profile .bashrc .bash\_logout}
\ExtensionTok{[nickerg@\textasciitilde{}]$}\NormalTok{ git pull origin master}
\CommentTok{\# 修改}
\ExtensionTok{[nickerg@\textasciitilde{}]$}\NormalTok{ git config }\AttributeTok{{-}{-}global}\NormalTok{ user.name sloera}
\ExtensionTok{[nickerg@\textasciitilde{}]$}\NormalTok{ git config }\AttributeTok{{-}{-}global}\NormalTok{ user.email sloera@163.comn}
\ExtensionTok{[nickerg@\textasciitilde{}]$}\NormalTok{ git commit }\AttributeTok{{-}am} \StringTok{"modify bash prompt"}
\ExtensionTok{On}\NormalTok{ branch master}
\ExtensionTok{nothing}\NormalTok{ to commit, working tree clean}
\end{Highlighting}
\end{Shaded}

\hypertarget{ux5b89ux88c5ux684cux9762ux6240ux9700ux8f6fux4ef6}{%
\subsection{安装桌面所需软件}\label{ux5b89ux88c5ux684cux9762ux6240ux9700ux8f6fux4ef6}}

\begin{Shaded}
\begin{Highlighting}[]
\ExtensionTok{yay} \AttributeTok{{-}S}\NormalTok{ neofetch alacritty polybar dmenu ranger tmux rofi campton variety feh variety i3{-}gaps}
\FunctionTok{sudo}\NormalTok{ pacman }\AttributeTok{{-}S}\NormalTok{ xorg{-}server}
\FunctionTok{sudo}\NormalTok{ pacman }\AttributeTok{{-}S}\NormalTok{ lightdm lightdm{-}gtk{-}greeter}
\FunctionTok{sudo}\NormalTok{ systemctl enable lightdm}
\FunctionTok{sudo}\NormalTok{ systemctl start lightdm}
\CommentTok{\# 如果启动失败，尝试重启系统}
\ExtensionTok{yay} \AttributeTok{{-}S}\NormalTok{ i3exit}
\end{Highlighting}
\end{Shaded}

\hypertarget{section}{%
\subsubsection{}\label{section}}

\begin{Shaded}
\begin{Highlighting}[]
\FunctionTok{sudo}\NormalTok{ vim /etc/default/grub}
\CommentTok{\# start}
\CommentTok{\#GRUB\_CMDLINE\_LINUX\_DEFAULT="quiet sqlash acpi\_backlight=vendor"}
\VariableTok{GRUB\_CMDLINE\_LINUX\_DEFAULT}\OperatorTok{=}\StringTok{"quiet acpi\_osi=! acpi\_osi=}\DataTypeTok{\textbackslash{}"}\StringTok{Windows 2009}\DataTypeTok{\textbackslash{}"}\StringTok{"}
\FunctionTok{sudo}\NormalTok{ update{-}grub}
\FunctionTok{sudo}\NormalTok{ apt install xbacklight xorg xserver{-}xorg{-}video{-}intel}
\end{Highlighting}
\end{Shaded}

\hypertarget{zsh-1}{%
\subsection{zsh}\label{zsh-1}}

\begin{Shaded}
\begin{Highlighting}[]
\ExtensionTok{yay} \AttributeTok{{-}S}\NormalTok{ zsh}
\FunctionTok{chsh} \AttributeTok{{-}s}\NormalTok{ /bin/zsh}
\ExtensionTok{yay} \AttributeTok{{-}S}\NormalTok{ oh{-}my{-}zsh{-}git}
\ExtensionTok{yay} \AttributeTok{{-}S}\NormalTok{ zsh{-}syntax{-}highlighting zsh{-}autosuggestions autojump}
\FunctionTok{sudo}\NormalTok{ ln }\AttributeTok{{-}s}\NormalTok{ /usr/share/zsh/plugins/zsh{-}syntax{-}highlighting /usr/share/oh{-}my{-}zsh/custom/plugins/}
\FunctionTok{sudo}\NormalTok{ ln }\AttributeTok{{-}s}\NormalTok{ /usr/share/zsh/plugins/zsh{-}autosuggestions /usr/share/oh{-}my{-}zsh/custom/plugins/}
\ExtensionTok{yay} \AttributeTok{{-}S}\NormalTok{ alacritty}
\end{Highlighting}
\end{Shaded}

\hypertarget{ux8c03ux6574ux5206ux8fa8ux7387}{%
\subsection{调整分辨率}\label{ux8c03ux6574ux5206ux8fa8ux7387}}

\begin{quote}
https://wiki.archlinux.org/index.php/Xrandr\_(\%E7\%AE\%80\%E4\%BD\%93\%E4\%B8\%AD\%E6\%96\%87)
\end{quote}

\begin{Shaded}
\begin{Highlighting}[]
\FunctionTok{sudo}\NormalTok{ pacman }\AttributeTok{{-}S}\NormalTok{ xorg{-}xrandr}
\ExtensionTok{$}\NormalTok{ xrandr }\AttributeTok{{-}{-}output}\NormalTok{ HDMI{-}1 }\AttributeTok{{-}{-}mode}\NormalTok{ 1920x1080 }\AttributeTok{{-}{-}rate}\NormalTok{ 60}
\ExtensionTok{/etc/X11/xorg.conf}
\ExtensionTok{Section} \StringTok{"Monitor"}
    \ExtensionTok{Identifier}      \StringTok{"External DVI"}
    \ExtensionTok{Modeline}        \StringTok{"1280x1024\_60.00"}\NormalTok{  108.88  1280 1360 1496 1712  1024 1025 1028 1060  }\AttributeTok{{-}HSync}\NormalTok{ +Vsync}
    \ExtensionTok{Option}          \StringTok{"PreferredMode"} \StringTok{"1280x1024\_60.00"}
\ExtensionTok{EndSection}
\ExtensionTok{Section} \StringTok{"Device"}
    \ExtensionTok{Identifier}      \StringTok{"ATI Technologies, Inc. M22 [Radeon Mobility M300]"}
    \ExtensionTok{Driver}          \StringTok{"ati"}
    \ExtensionTok{Option}          \StringTok{"Monitor{-}DVI{-}0"} \StringTok{"External DVI"}
\ExtensionTok{EndSection}
\ExtensionTok{Section} \StringTok{"Screen"}
    \ExtensionTok{Identifier}      \StringTok{"Primary Screen"}
    \ExtensionTok{Device}          \StringTok{"ATI Technologies, Inc. M22 [Radeon Mobility M300]"}
    \ExtensionTok{DefaultDepth}\NormalTok{    24}
    \ExtensionTok{SubSection} \StringTok{"Display"}
        \ExtensionTok{Depth}\NormalTok{           24}
        \ExtensionTok{Modes}   \StringTok{"1280x1024"} \StringTok{"1024x768"} \StringTok{"640x480"}
    \ExtensionTok{EndSubSection}
\ExtensionTok{EndSection}

\ExtensionTok{Section} \StringTok{"ServerLayout"}
        \ExtensionTok{Identifier}      \StringTok{"Default Layout"}
        \ExtensionTok{Screen}          \StringTok{"Primary Screen"}
\ExtensionTok{EndSection}
\end{Highlighting}
\end{Shaded}

\hypertarget{virtualbox}{%
\subsection{virtualbox}\label{virtualbox}}

\hypertarget{arch-ux4e0aux5b89ux88c5-virtualbox}{%
\subsubsection{arch 上安装
virtualbox}\label{arch-ux4e0aux5b89ux88c5-virtualbox}}

\begin{quote}
https://wiki.archlinux.org/title/VirtualBox\_(\%E7\%AE\%80\%E4\%BD\%93\%E4\%B8\%AD\%E6\%96\%87)
\end{quote}

\begin{Shaded}
\begin{Highlighting}[]
\FunctionTok{sudo}\NormalTok{ pacman }\AttributeTok{{-}S}\NormalTok{ virtualbox{-}host{-}modules{-}arch}
\CommentTok{\# 手动加载模块}
\CommentTok{\# modprobe vboxdrv}
\CommentTok{\# modprobe vboxnetadp}
\CommentTok{\# modprobe vboxnetflt}
\CommentTok{\# modprobe vboxpci}
\CommentTok{\# sudo vboxreload}
\FunctionTok{sudo}\NormalTok{ pacman }\AttributeTok{{-}S}\NormalTok{ net{-}tools}
\FunctionTok{sudo}\NormalTok{ pacman }\AttributeTok{{-}S}\NormalTok{ virtualbox{-}guest{-}iso}
\CommentTok{\# 安装扩展包}
\ExtensionTok{yay} \AttributeTok{{-}S}\NormalTok{ virtualbox{-}ext{-}oracle}
\FunctionTok{sudo}\NormalTok{ usermod }\AttributeTok{{-}G}\NormalTok{ vboxusers }\AttributeTok{{-}a}\NormalTok{ 用户名}
\CommentTok{\# /usr/lib/virtualbox/additions/VBoxGuestAdditions.iso}
\CommentTok{\# win 交换坐ctrl和caps}
\CommentTok{\# https://blog.csdn.net/Orange\_5Lee/article/details/109602588}

\ExtensionTok{VirtualBox}
\end{Highlighting}
\end{Shaded}

\hypertarget{ux5b89ux88c5virtualbox-guest-additionsux589eux5f3a}{%
\subsubsection{安装virtualBox Guest
Additions增强}\label{ux5b89ux88c5virtualbox-guest-additionsux589eux5f3a}}

\begin{quote}
https://wiki.archlinux.org/index.php/VirtualBox/Install\_Arch\_Linux\_as\_a\_guest
\end{quote}

\begin{Shaded}
\begin{Highlighting}[]
\FunctionTok{sudo}\NormalTok{ pacman }\AttributeTok{{-}Q}\NormalTok{ virtualbox{-}guest{-}utils}
\CommentTok{\# 添加共享文件夹}
\FunctionTok{sudo}\NormalTok{ mount }\AttributeTok{{-}t}\NormalTok{ vboxsf tfs /media/tfs}
\end{Highlighting}
\end{Shaded}

\hypertarget{ux81eaux52a8ux6302ux8f7d}{%
\paragraph{自动挂载}\label{ux81eaux52a8ux6302ux8f7d}}

\begin{quote}
https://www.javaroad.cn/questions/361529
\end{quote}

\begin{Shaded}
\begin{Highlighting}[]
\FunctionTok{sudo}\NormalTok{ pacman }\AttributeTok{{-}Q}\NormalTok{ virtualbox{-}guest{-}utils}
\FunctionTok{sudo}\NormalTok{ systemctl enable vboxservice.service}
\FunctionTok{sudo}\NormalTok{ systemctl start vboxservice.service}
\CommentTok{\# 重新启动}
\end{Highlighting}
\end{Shaded}

\hypertarget{ux81eaux52a8ux6302ux8f7dux6ca1ux6709ux6743ux9650}{%
\paragraph{自动挂载没有权限}\label{ux81eaux52a8ux6302ux8f7dux6ca1ux6709ux6743ux9650}}

\begin{Shaded}
\begin{Highlighting}[]
\FunctionTok{sudo}\NormalTok{ usermod }\AttributeTok{{-}aG}\NormalTok{ vboxsf }\VariableTok{$(}\FunctionTok{whoami}\VariableTok{)}
\end{Highlighting}
\end{Shaded}

\hypertarget{ux65e5ux5e38}{%
\subsection{日常}\label{ux65e5ux5e38}}

\hypertarget{ux5b57ux4f53}{%
\subsubsection{字体}\label{ux5b57ux4f53}}

\begin{quote}
https://wiki.archlinux.org/title/Fonts\_(\%E7\%AE\%80\%E4\%BD\%93\%E4\%B8\%AD\%E6\%96\%87)\#\%E4\%B8\%AD\%E6\%97\%A5\%E9\%9F\%A9\%E8\%B6\%8A\%E6\%96\%87\%E5\%AD\%97
\end{quote}

\begin{Shaded}
\begin{Highlighting}[]
\FunctionTok{sudo}\NormalTok{ pacman }\AttributeTok{{-}S}\NormalTok{ ttf{-}font{-}awesome wqy{-}bitmapfont wqy{-}microhei wqy{-}microhei wqy{-}zenhei nerd{-}fonts{-}complete noto{-}fonts{-}cjk}
\ExtensionTok{vim}\NormalTok{ .zshrc}
\CommentTok{\# can\textquotesingle{}t display chinese}
\CommentTok{\# start}
\BuiltInTok{export} \VariableTok{LANG}\OperatorTok{=}\NormalTok{en\_US.utf8}
\CommentTok{\# end}
\end{Highlighting}
\end{Shaded}

\hypertarget{ux4ea4ux6362ux5750ctrlux548ccaps}{%
\subsubsection{交换坐ctrl和caps}\label{ux4ea4ux6362ux5750ctrlux548ccaps}}

\begin{Shaded}
\begin{Highlighting}[]
\FunctionTok{sudo}\NormalTok{ vim /etc/profile.d/swap.sh}
\ExtensionTok{setxkbmap} \AttributeTok{{-}option}\NormalTok{ ctrl:swapcaps}
\BuiltInTok{.}\NormalTok{ /etc/profile}
\end{Highlighting}
\end{Shaded}

\begin{Shaded}
\begin{Highlighting}[]
\FunctionTok{xmodmap} \AttributeTok{{-}pke} \OperatorTok{\textgreater{}}\NormalTok{ \textasciitilde{}/.xmodmap}
\ExtensionTok{vim}\NormalTok{ .xmodmap}
\CommentTok{\# 修改按键}
\CommentTok{\# 使用 xeV 查看按键}
\FunctionTok{xmodmap}\NormalTok{ \textasciitilde{}/.xmodmap}
\end{Highlighting}
\end{Shaded}

\hypertarget{ux6302ux8f7d-ntfs-ux5206ux533a}{%
\subsubsection{挂载 ntfs 分区}\label{ux6302ux8f7d-ntfs-ux5206ux533a}}

\begin{itemize}
\tightlist
\item
  安装\texttt{ntfs-3g}
\end{itemize}

\texttt{sudo\ pacman\ -S\ ntfs-3g}

\hypertarget{ux624bux52a8ux6302ux8f7d}{%
\paragraph{手动挂载}\label{ux624bux52a8ux6302ux8f7d}}

\begin{Shaded}
\begin{Highlighting}[]
\FunctionTok{mount}\NormalTok{ /dev/you\_NTFS\_partion /mount/point}
\ExtensionTok{或}
\ExtensionTok{ntfs{-}3g}\NormalTok{ /dev/your\_NTFS\_partition /mount/point}
\end{Highlighting}
\end{Shaded}

示例

\begin{Shaded}
\begin{Highlighting}[]
\FunctionTok{sudo}\NormalTok{ mount /dev/nvme0n1p5 /mnt/soft}
\end{Highlighting}
\end{Shaded}

\hypertarget{ux81eaux52a8ux6302ux8f7d-1}{%
\paragraph{自动挂载}\label{ux81eaux52a8ux6302ux8f7d-1}}

\begin{Shaded}
\begin{Highlighting}[]
\FunctionTok{sudo}\NormalTok{ vim /etc/fstab}
\ExtensionTok{[sloera@127}\NormalTok{ \textasciitilde{}]$ cat /etc/fstab }
\CommentTok{\# Static information about the filesystems.}
\CommentTok{\# See fstab(5) for details.}

\CommentTok{\# \textless{}file system\textgreater{} \textless{}dir\textgreater{} \textless{}type\textgreater{} \textless{}options\textgreater{} \textless{}dump\textgreater{} \textless{}pass\textgreater{}}
\CommentTok{\# /dev/sdb2 UUID=8120937f{-}d921{-}44d3{-}be01{-}123ea1f97636}
\ExtensionTok{/dev/sdb2}\NormalTok{               /           ext4        rw,relatime 0 1}

\CommentTok{\# /dev/sdb1 UUID=795D{-}373D}
\ExtensionTok{/dev/sdb1}\NormalTok{               /boot       vfat        rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount{-}ro   0 2}

\CommentTok{\# /dev/sdb3 UUID=ba5c873c{-}b418{-}4df3{-}99f0{-}3ddc52979a2d}
\ExtensionTok{/dev/sdb4}\NormalTok{               /home       ext4        rw,relatime 0 2}

\ExtensionTok{/swapfile}\NormalTok{               none        swap        defaults    0 0}


\ExtensionTok{/dev/sda2}\NormalTok{               /mnt/joy        ntfs{-}3g         defaults    0 0}


\FunctionTok{sudo}\NormalTok{ mount }\AttributeTok{{-}a}
\end{Highlighting}
\end{Shaded}

\hypertarget{neovim}{%
\subsubsection{neovim}\label{neovim}}

\hypertarget{node}{%
\paragraph{node}\label{node}}

\begin{Shaded}
\begin{Highlighting}[]
\FunctionTok{sudo}\NormalTok{ pacman }\AttributeTok{{-}S}\NormalTok{ nodejs}
\end{Highlighting}
\end{Shaded}

\begin{Shaded}
\begin{Highlighting}[]
\ExtensionTok{yay} \AttributeTok{{-}S}\NormalTok{ neovim}
\ExtensionTok{nvim}
\ExtensionTok{:PlugInstall}

\FunctionTok{sudo}\NormalTok{ pacman }\AttributeTok{{-}S}\NormalTok{ go xclip}
\BuiltInTok{cd}\NormalTok{ .config/nvim/plugged/vim{-}hexokinase}
\FunctionTok{make}\NormalTok{ hexokinase}

\ExtensionTok{:checkhealth}
\end{Highlighting}
\end{Shaded}

\begin{itemize}
\tightlist
\item[$\boxtimes$]
  install pynvim (pip);
  \texttt{yay\ -S\ python-pip\ \&\&\ pip\ install\ pynvim}
\item[$\boxtimes$]
  install nodejs, and do
  \texttt{sudo\ npm\ install\ -g\ neovim\ \&\&\ sudo\ npm\ -g\ install\ instant-markdown-d}
\end{itemize}

\hypertarget{lazygit}{%
\subsubsection{lazygit}\label{lazygit}}

\begin{Shaded}
\begin{Highlighting}[]
\ExtensionTok{yay} \AttributeTok{{-}S}\NormalTok{ lazygit}
\end{Highlighting}
\end{Shaded}

\hypertarget{keepass}{%
\subsubsection{keepass}\label{keepass}}

\begin{Shaded}
\begin{Highlighting}[]
\CommentTok{\# sudo pacman {-}S keepassxc \# can\textquotesingle{}t use webdav}
\CommentTok{\# sudo pacman {-}S keepass}
\CommentTok{\# yay {-}S keepass}
\CommentTok{\# 配置}
\ExtensionTok{https://dav.jianguoyun.com/dav/WebDev/KeePass/android.kdbx}
\CommentTok{\# 中文乱码问题}
\ExtensionTok{[sloera@127}\NormalTok{ \textasciitilde{}]$ sudo vim /usr/bin/keepass }
\ExtensionTok{[sloera@127}\NormalTok{ \textasciitilde{}]$ cat /usr/bin/keepass }
\CommentTok{\#!/bin/sh}
\BuiltInTok{exec}\NormalTok{ mono }\AttributeTok{{-}{-}verify{-}all}\NormalTok{ /usr/share/keepass/KeePass.exe }\StringTok{"}\VariableTok{$@}\StringTok{"}
\BuiltInTok{export} \VariableTok{LANG}\OperatorTok{=}\NormalTok{zh\_CN.utf8}
\end{Highlighting}
\end{Shaded}

\hypertarget{ux58c1ux7eb8}{%
\subsubsection{壁纸}\label{ux58c1ux7eb8}}

\begin{Shaded}
\begin{Highlighting}[]
\ExtensionTok{yay} \AttributeTok{{-}S}\NormalTok{ feh}
\ExtensionTok{feh} \AttributeTok{{-}{-}bg{-}center}\NormalTok{ /home/sloera/Downloads/wallpaper.jpg}
\end{Highlighting}
\end{Shaded}

\hypertarget{ux8fdeux63a5ux5b89ux5353ux624bux673a}{%
\subsubsection{连接安卓手机}\label{ux8fdeux63a5ux5b89ux5353ux624bux673a}}

\begin{quote}
http://blog.lujun9972.win/blog/2018/03/09/\%E8\%BF\%9E\%E6\%8E\%A5android\%E6\%89\%8B\%E6\%9C\%BA\%E5\%88\%B0archlinux\%E4\%B8\%8A/index.html
\end{quote}

\begin{Shaded}
\begin{Highlighting}[]
\CommentTok{\# 启用mtp支持}
\FunctionTok{sudo}\NormalTok{ pacman }\AttributeTok{{-}S}\NormalTok{ mtpfs }\AttributeTok{{-}{-}noconfirm}
\ExtensionTok{yay} \AttributeTok{{-}S}\NormalTok{ jmtpfs}
\CommentTok{\# 手动挂载}
\ExtensionTok{jmtpfs}\NormalTok{ \textasciitilde{}/mnt}
\CommentTok{\# 自动挂载}
\FunctionTok{sudo}\NormalTok{ pacman }\AttributeTok{{-}Sy}\NormalTok{ gvfs{-}mtp}
\end{Highlighting}
\end{Shaded}

\hypertarget{frp}{%
\subsubsection{frp}\label{frp}}

https://hub.fastgit.org/fatedier/frp

服务端

\begin{Shaded}
\begin{Highlighting}[]
\KeywordTok{[common]}
\DataTypeTok{bind\_port }\OtherTok{=}\StringTok{ }\DecValTok{7000}
\DataTypeTok{dashboard\_port }\OtherTok{=}\StringTok{ }\DecValTok{7500}
\DataTypeTok{token }\OtherTok{=}\StringTok{ }\DecValTok{1}
\DataTypeTok{dashboard\_user }\OtherTok{=}\StringTok{ admin}
\DataTypeTok{dashboard\_pwd }\OtherTok{=}\StringTok{ }\DecValTok{1}
\DataTypeTok{vhost\_http\_port }\OtherTok{=}\StringTok{ }\DecValTok{6081}
\DataTypeTok{vhost\_https\_port }\OtherTok{=}\StringTok{ }\DecValTok{6082}
\end{Highlighting}
\end{Shaded}

客户端

\begin{Shaded}
\begin{Highlighting}[]
\KeywordTok{[common]}
\DataTypeTok{server\_addr }\OtherTok{=}\StringTok{ }\DecValTok{49}\StringTok{.}\DecValTok{233}\StringTok{.}\FloatTok{254.141}
\DataTypeTok{server\_port }\OtherTok{=}\StringTok{ }\DecValTok{7000}
\DataTypeTok{token }\OtherTok{=}\StringTok{ ddddd}

\CommentTok{\#公网通过ssh访问内部服务器}
\KeywordTok{[ssh]}
\DataTypeTok{type }\OtherTok{=}\StringTok{ tcp}
\DataTypeTok{local\_ip }\OtherTok{=}\StringTok{ }\DecValTok{127}\StringTok{.}\DecValTok{0}\StringTok{.}\FloatTok{0.1}
\DataTypeTok{local\_port }\OtherTok{=}\StringTok{ }\DecValTok{6000}
\DataTypeTok{remote\_port }\OtherTok{=}\StringTok{ }\DecValTok{6002}
\end{Highlighting}
\end{Shaded}

\hypertarget{ux914dux7f6eux4e3asystemctlux670dux52a1}{%
\paragraph{配置为systemctl服务}\label{ux914dux7f6eux4e3asystemctlux670dux52a1}}

\begin{enumerate}
\def\labelenumi{\arabic{enumi}.}
\item
  frpc.sh

\begin{Shaded}
\begin{Highlighting}[]
\CommentTok{\#!/bin/bash}
\CommentTok{\#\#\# }\RegionMarkerTok{BEGIN}\CommentTok{ INIT INFO}
\VariableTok{name}\OperatorTok{=}\NormalTok{frpc}
\ControlFlowTok{case} \StringTok{"}\VariableTok{$1}\StringTok{"} \KeywordTok{in}
    \SpecialStringTok{start}\KeywordTok{)}
        \KeywordTok{\textasciigrave{}}\FunctionTok{nohup}\NormalTok{ /home/local/git/frp/frp\_0.35.1\_linux\_amd64/frpc }\AttributeTok{{-}c}\NormalTok{ /home/local/git/frp/frp\_0.35.1\_linux\_amd64/frpc.ini }\OperatorTok{\textgreater{}}\NormalTok{ /home/local/git/frp/frp\_0.35.1\_linux\_amd64/nohup.log }\DecValTok{2}\OperatorTok{\textgreater{}\&}\DecValTok{1} \KeywordTok{\&\textasciigrave{}}
        \ControlFlowTok{;;}
    \SpecialStringTok{stop}\KeywordTok{)}
        \CommentTok{\#\textasciigrave{}ps {-}ef | grep frpc | grep {-}v grep | awk \textquotesingle{}\{print $2\}\textquotesingle{} | xargs kill {-}9\textasciigrave{}}
        \KeywordTok{\textasciigrave{}}\FunctionTok{ps} \AttributeTok{{-}ef} \KeywordTok{|} \FunctionTok{grep}\NormalTok{  frpc }\KeywordTok{|} \FunctionTok{grep} \AttributeTok{{-}v}\NormalTok{ grep }\KeywordTok{|} \FunctionTok{awk} \StringTok{\textquotesingle{}\{print "kill {-}9 " $2\}\textquotesingle{}}\KeywordTok{|}\FunctionTok{sh}\KeywordTok{\textasciigrave{}}
        \BuiltInTok{echo} \StringTok{"kill the server "}\VariableTok{$\{name\}}
        \ControlFlowTok{;;}
    \SpecialStringTok{restart}\KeywordTok{)}
        \VariableTok{$0}\NormalTok{ stop}
        \VariableTok{$0}\NormalTok{ start}
        \ControlFlowTok{;;}
    \PreprocessorTok{*}\KeywordTok{)}
        \BuiltInTok{echo} \StringTok{"Usage: }\VariableTok{$0}\StringTok{ \{start|stop|restart\}"}
        \BuiltInTok{exit}\NormalTok{ 1}
        \ControlFlowTok{;;}
\ControlFlowTok{esac}
\end{Highlighting}
\end{Shaded}
\item
  frpc.service

\begin{verbatim}
Requires=

[Service]
ExecStart=/home/local/git/frp/frp_0.35.1_linux_amd64/frpc.sh start
ExecStop=/home/local/git/frp/frp_0.35.1_linux_amd64/frpc.sh stop
ExecReload=/home/local/git/frp/frp_0.35.1_linux_amd64/frpc.sh restart
Type=forking

[Install]
WantedBy=multi-user.target
\end{verbatim}
\item
  复制

\begin{Shaded}
\begin{Highlighting}[]
\FunctionTok{cp}\NormalTok{ frpc.service /etc/systemd/system}
\ExtensionTok{systemctl}\NormalTok{ daemon{-}reload}
\ExtensionTok{systemctl}\NormalTok{ start frpc.service}
\end{Highlighting}
\end{Shaded}
\end{enumerate}

\hypertarget{ux526aux8d34ux677fux7ba1ux7406}{%
\subsubsection{剪贴板管理}\label{ux526aux8d34ux677fux7ba1ux7406}}

\begin{Shaded}
\begin{Highlighting}[]
\ExtensionTok{yay} \AttributeTok{{-}S}\NormalTok{ copyq}
\end{Highlighting}
\end{Shaded}

\hypertarget{ux622aux56fe}{%
\subsubsection{截图}\label{ux622aux56fe}}

\begin{Shaded}
\begin{Highlighting}[]
\FunctionTok{sudo}\NormalTok{ pacman }\AttributeTok{{-}S}\NormalTok{ flameshot}
\end{Highlighting}
\end{Shaded}

\hypertarget{ux901aux8baf}{%
\subsubsection{\texorpdfstring{\url{通讯}}{通讯}}\label{ux901aux8baf}}

\hypertarget{wechat}{%
\paragraph{wechat}\label{wechat}}

\begin{Shaded}
\begin{Highlighting}[]
\FunctionTok{sudo}\NormalTok{ vim /etc/pacman.conf}
\CommentTok{\# 打开 multilab的配置}
\FunctionTok{sudo}\NormalTok{ pacman }\AttributeTok{{-}Syy}
\FunctionTok{sudo}\NormalTok{ pacman }\AttributeTok{{-}S}\NormalTok{ wine{-}for{-}wechat}
\FunctionTok{sudo}\NormalTok{ systemctl restart systemd{-}binfmt}
\ExtensionTok{yay} \AttributeTok{{-}S}\NormalTok{ com.qq.weixin.deepin     }\CommentTok{\#基于deepin wine5的wechat}
\FunctionTok{sudo}\NormalTok{ pacman }\AttributeTok{{-}S}\NormalTok{ p7zip}
\FunctionTok{mkdir} \AttributeTok{{-}p}\NormalTok{ \textasciitilde{}/.deepinwine/deepin{-}wine{-}helper}
\BuiltInTok{cd}\NormalTok{ \textasciitilde{}/.deepinwine/deepin{-}wine{-}helper}
\ExtensionTok{7z}\NormalTok{ x /opt/apps/com.qq.weixin.deepin/files/helper\_archive.7z}
\FunctionTok{mkdir} \AttributeTok{{-}p}\NormalTok{ \textasciitilde{}/.deepinwine/deepin{-}wine6{-}stable}
\ExtensionTok{7z}\NormalTok{ x /opt/apps/com.qq.weixin.deepin/files/wine\_archive.7z}
\end{Highlighting}
\end{Shaded}

\hypertarget{qq}{%
\paragraph{qq}\label{qq}}

\begin{Shaded}
\begin{Highlighting}[]
\CommentTok{\# yay {-}S com.qq.im.deepin}
\ExtensionTok{yay} \AttributeTok{{-}S}\NormalTok{ deepin.com.qq.im.light}
\end{Highlighting}
\end{Shaded}

\hypertarget{tim}{%
\paragraph{tim}\label{tim}}

\begin{quote}
https://github.com/countstarlight/deepin-wine-tim-arch\#\%E5\%88\%87\%E6\%8D\%A2\%E5\%88\%B0-deepin-wine
\end{quote}

\begin{Shaded}
\begin{Highlighting}[]
\ExtensionTok{yay} \AttributeTok{{-}S}\NormalTok{ deepin{-}wine{-}tim}
\BuiltInTok{cd}\NormalTok{ /opt/apps/com.qq.office.deepin/files}
\CommentTok{\# 切换为deep{-}wine}
\ExtensionTok{./run.sh} \AttributeTok{{-}d}
\CommentTok{\# 修改配置}
\ExtensionTok{./run.sh}\NormalTok{ winecfg}
\end{Highlighting}
\end{Shaded}

\hypertarget{floccus}{%
\subsubsection{floccus}\label{floccus}}

浏览器书签同步

\hypertarget{thunderbird}{%
\subsubsection{thunderbird}\label{thunderbird}}

\begin{Shaded}
\begin{Highlighting}[]
\ExtensionTok{yay} \AttributeTok{{-}S}\NormalTok{ thunderbird{-}extension{-}enigmail}
\FunctionTok{sudo}\NormalTok{ pacman }\AttributeTok{{-}S}\NormalTok{ thunderbird}
\end{Highlighting}
\end{Shaded}

\hypertarget{ux6dfbux52a0ux8d26ux53f7}{%
\paragraph{添加账号}\label{ux6dfbux52a0ux8d26ux53f7}}

\begin{itemize}
\tightlist
\item
  add ons 安装 ExQuilla for Exchange 插件
\item
  accountsettings 添加 microsoft exchange account
\item
  填写用户名、密码
\item
  选择 login with email address
\item
  使用 auto discover:
\item
  如失败，手动填写。 EWS URL 为：https://mail.temp.com/EWS/Exchange.asmx
  。 将mail.temp.com 换成具体的邮箱
\end{itemize}

\hypertarget{ux52a0ux5bc6}{%
\paragraph{加密}\label{ux52a0ux5bc6}}

\begin{itemize}
\tightlist
\item
  account settings
\item
  manage identities
\item
  edit
\item
  end to end encryption
\item
  配置 s/MIME 证书
\end{itemize}

\hypertarget{mpv}{%
\subsubsection{mpv}\label{mpv}}

\begin{Shaded}
\begin{Highlighting}[]
\FunctionTok{sudo}\NormalTok{ pacman }\AttributeTok{{-}S}\NormalTok{ mpv}
\end{Highlighting}
\end{Shaded}

\hypertarget{rdp-winux8fdcux7a0bux684cux9762ux8fdeux63a5}{%
\subsubsection{rdp
win远程桌面连接}\label{rdp-winux8fdcux7a0bux684cux9762ux8fdeux63a5}}

\begin{Shaded}
\begin{Highlighting}[]
\FunctionTok{sudo}\NormalTok{ pacman }\AttributeTok{{-}S}\NormalTok{ freerdp}
\CommentTok{\# xfreerdp /v:192.168.1.123}
\ExtensionTok{xfreerdp}\NormalTok{ /v:192.168.1.123:3389 /u:administrator /p:password /w:1920 /h:1050 /sound}
\end{Highlighting}
\end{Shaded}

\hypertarget{typora}{%
\subsubsection{typora}\label{typora}}

\begin{Shaded}
\begin{Highlighting}[]
\FunctionTok{sudo}\NormalTok{ pacman }\AttributeTok{{-}S}\NormalTok{ typora}
\end{Highlighting}
\end{Shaded}

\hypertarget{sunlogin-ux8fdcux7a0b-ux5411ux65e5ux8475}{%
\subsubsection{sunlogin 远程
向日葵}\label{sunlogin-ux8fdcux7a0b-ux5411ux65e5ux8475}}

\begin{Shaded}
\begin{Highlighting}[]
\ExtensionTok{yay} \AttributeTok{{-}S}\NormalTok{ sunlogin}
\FunctionTok{sudo}\NormalTok{ systemctl start runsunloginclient}
\CommentTok{\# 为使Sunlogin控制在用户登录前及注销后出现的SDDM界面，执行以下命令：}
\FunctionTok{sudo}\NormalTok{ sh }\AttributeTok{{-}c} \StringTok{\textquotesingle{}echo "/usr/bin/xhost +" \textgreater{}\textgreater{} /usr/share/sddm/scripts/Xsetup\textquotesingle{}}
\end{Highlighting}
\end{Shaded}

\hypertarget{goldendict}{%
\subsubsection{goldendict}\label{goldendict}}

\begin{quote}
https://www.cnblogs.com/keatonlao/p/12702571.html
\end{quote}

\hypertarget{ux5f00ux53d1}{%
\subsection{开发}\label{ux5f00ux53d1}}

\hypertarget{easyconect}{%
\subsubsection{easyconect}\label{easyconect}}

\begin{quote}
https://blog.csdn.net/u010563350/article/details/105135881

https://www.wannaexpresso.com/2020/06/07/easy-connect-manjaro/
\end{quote}

\begin{verbatim}
cd /opt
git clone https://aur.archlinux.org/easyconnect.git
cd easyconnect
vim PKGBUILD
# 替换 
source= 
("http://download.sangfor.com.cn/download/product/sslvpn/pkg/linux_767/EasyConnect_x64_7_6_7_3.deb"
        "http://ftp.acc.umu.se/pub/GNOME/sources/pango/1.42/pango-1.42.4.tar.xz")
md5sums=('ac2020ce44583d5ee4552c81563dce9c'
          'deb171a31a3ad76342d5195a1b5bbc7c')
# 为

source=("http://download.sangfor.com.cn/download/product/sslvpn/pkg/linux_01/EasyConnect_x64.deb"
        "http://ftp.acc.umu.se/pub/GNOME/sources/pango/1.42/pango-1.42.4.tar.xz")
md5sums=('6ed6273f7754454f19835a456ee263e3'
          'deb171a31a3ad76342d5195a1b5bbc7c')
# 安装
makepkg
makepkg --install
# 更新依赖库
curl -JOL http://ftp.acc.umu.se/pub/GNOME/sources/pango/1.42/pango-1.42.4.tar.xz
tar xf pango-1.42.4.tar.xz
cd pango-1.42.4
./configure --prefix=/usr
make && make DESTDIR="/home/sloera/oldlib/pango" install

sudo vim /usr/share/applications/EasyConnect.desktop
# 粘贴下面的内容，并注释原有内容
Exec=env LD_LIBRARY_PATH=/home/sloera/oldlib/pango/usr/lib /usr/share/sangfor/EasyConnect/EasyConnect --enable-transparent-visuals --disable-gpu

# 在终端中运行
cd /usr/share/sangfor/EasyConnect
# 在终端运行EasyConnect
./EasyConnect
\end{verbatim}

登陆后小图标闪动数秒后闪退，是由于svpnservice没有正常启动。

登陆时，当登陆进度条运行至70\%左右，在终端回车运行命令。

\begin{Shaded}
\begin{Highlighting}[]
\FunctionTok{sudo}\NormalTok{ /usr/share/sangfor/EasyConnect/resources/shell/sslservice.sh}
\end{Highlighting}
\end{Shaded}

\hypertarget{snap}{%
\subsubsection{snap}\label{snap}}

\begin{quote}
https://cn.ubuntu.com/blog/what-is-snap-application

https://snapcraft.io/install/datagrip/arch
\end{quote}

\begin{Shaded}
\begin{Highlighting}[]
\ExtensionTok{yay} \AttributeTok{{-}S}\NormalTok{ snapd}
\FunctionTok{sudo}\NormalTok{ systemctl enable }\AttributeTok{{-}{-}now}\NormalTok{ snapd.socket}
\FunctionTok{sudo}\NormalTok{ ln }\AttributeTok{{-}s}\NormalTok{ /var/lib/snapd/snap /snap}
\end{Highlighting}
\end{Shaded}

\hypertarget{lol}{%
\paragraph{lol}\label{lol}}

\begin{Shaded}
\begin{Highlighting}[]
\FunctionTok{sudo}\NormalTok{ snap install leagueoflegends }\AttributeTok{{-}{-}edge}
\end{Highlighting}
\end{Shaded}

\hypertarget{wps}{%
\subsubsection{WPS}\label{wps}}

\begin{verbatim}
yay -S wps-office ttf-wps-fonts
\end{verbatim}

\hypertarget{libreoffice}{%
\subsubsection{libreoffice}\label{libreoffice}}

\begin{Shaded}
\begin{Highlighting}[]
\FunctionTok{sudo}\NormalTok{ pacman }\AttributeTok{{-}S}\NormalTok{ libreoffice}
\end{Highlighting}
\end{Shaded}

\hypertarget{ux84b2ux516cux82f1}{%
\subsubsection{蒲公英}\label{ux84b2ux516cux82f1}}

\begin{Shaded}
\begin{Highlighting}[]
\ExtensionTok{yay} \AttributeTok{{-}S}\NormalTok{  pgyvpn{-}bin}
\end{Highlighting}
\end{Shaded}

\hypertarget{postman}{%
\subsubsection{postman}\label{postman}}

\begin{verbatim}
sudo pacman -S postman-bin
\end{verbatim}

\hypertarget{jetbrains}{%
\subsubsection{jetbrains}\label{jetbrains}}

\begin{quote}
https://www.debugpoint.com/2021/02/install-java-arch/
\end{quote}

专业版

\begin{verbatim}
yay -S jetbrains-toolbox
\end{verbatim}

\hypertarget{svn}{%
\paragraph{svn}\label{svn}}

\begin{Shaded}
\begin{Highlighting}[]
\FunctionTok{sudo}\NormalTok{ pacman }\AttributeTok{{-}S}\NormalTok{ svn}
\end{Highlighting}
\end{Shaded}

svn 无法保存密码问题

一、 vim \textasciitilde/.subversion/config 用vim修改以下四个地方
store-passwords = yes store-plaintext-passwords = yes
store-ssl-client-cert-pp = yes store-ssl-client-cert-pp-plaintext = yes

二、 sudo chmod -R 777 \textasciitilde/.subversion/auth

\hypertarget{jdk}{%
\paragraph{jdk}\label{jdk}}

\begin{Shaded}
\begin{Highlighting}[]

\end{Highlighting}
\end{Shaded}

\hypertarget{ux7cfbux7edfux8fd0ux7ef4}{%
\subsection{系统运维}\label{ux7cfbux7edfux8fd0ux7ef4}}

\hypertarget{ux78c1ux76d8ux76d1ux6d4b}{%
\subsubsection{磁盘监测}\label{ux78c1ux76d8ux76d1ux6d4b}}

\begin{Shaded}
\begin{Highlighting}[]
\FunctionTok{sudo}\NormalTok{ pacman }\AttributeTok{{-}S}\NormalTok{ sysstat}
\end{Highlighting}
\end{Shaded}

\hypertarget{ux53ccux5c4fux663eux793a}{%
\subsubsection{双屏显示}\label{ux53ccux5c4fux663eux793a}}

\hypertarget{ux53c2ux8003}{%
\section{参考}\label{ux53c2ux8003}}

\begin{quote}
\begin{enumerate}
\def\labelenumi{\arabic{enumi}.}
\tightlist
\item
  https://wiki.archlinux.org/title/General\_recommendations\_(\%E7\%AE\%80\%E4\%BD\%93\%E4\%B8\%AD\%E6\%96\%87)
\end{enumerate}
\end{quote}

\end{document}
